<?php
    include_once('Configs/database.php');
    class ChucNang extends database{
        public function dsChucNang(){
            $this->setQuery("select macn,tencn from ChucNang where parent <> 0 order by tencn");
            return $this->fetchAll();
        }
        public function thongTinCN($macn){
            $this->setQuery("select * from ChucNang where macn=".$macn."");
            return $this->fetchAll();
        }
    }

?>